iconhelper: reset original pixbuf scale on clear
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 23 Jul 2014 04:27:59 +0000 (21:27 -0700)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 29 Jul 2014 08:13:21 +0000 (10:13 +0200)
Avoids a previously set value for a different image to accidentally
stick around.

https://bugzilla.gnome.org/show_bug.cgi?id=733416

gtk/gtkiconhelper.c

index d2d170681f5e87b32d3c95f6332e302f71c206ce..0ee99570bab3c11e8755b2afc492eeebfe6c0e52 100644 (file)
@@ -83,6 +83,7 @@ _gtk_icon_helper_clear (GtkIconHelper *self)
   self->priv->last_rendered_state = GTK_STATE_FLAG_NORMAL;
   self->priv->last_surface_state = GTK_STATE_FLAG_NORMAL;
   self->priv->last_surface_scale = 0;
+  self->priv->orig_pixbuf_scale = 1;
 }
 
 void